package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LuntaiPolicyRequestResultMapper;
import com.ruoyi.system.domain.LuntaiPolicyRequestResult;
import com.ruoyi.system.service.ILuntaiPolicyRequestResultService;

/**
 * 保单申请延保审核结果记录
Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
@Service
public class LuntaiPolicyRequestResultServiceImpl implements ILuntaiPolicyRequestResultService 
{
    @Autowired
    private LuntaiPolicyRequestResultMapper luntaiPolicyRequestResultMapper;

    /**
     * 查询保单申请延保审核结果记录

     * 
     * @param id 保单申请延保审核结果记录
主键
     * @return 保单申请延保审核结果记录

     */
    @Override
    public LuntaiPolicyRequestResult selectLuntaiPolicyRequestResultById(Integer id)
    {
        return luntaiPolicyRequestResultMapper.selectLuntaiPolicyRequestResultById(id);
    }

    /**
     * 查询保单申请延保审核结果记录
列表
     * 
     * @param luntaiPolicyRequestResult 保单申请延保审核结果记录

     * @return 保单申请延保审核结果记录

     */
    @Override
    public List<LuntaiPolicyRequestResult> selectLuntaiPolicyRequestResultList(LuntaiPolicyRequestResult luntaiPolicyRequestResult)
    {
        return luntaiPolicyRequestResultMapper.selectLuntaiPolicyRequestResultList(luntaiPolicyRequestResult);
    }

    /**
     * 新增保单申请延保审核结果记录

     * 
     * @param luntaiPolicyRequestResult 保单申请延保审核结果记录

     * @return 结果
     */
    @Override
    public int insertLuntaiPolicyRequestResult(LuntaiPolicyRequestResult luntaiPolicyRequestResult)
    {
        luntaiPolicyRequestResult.setCreateTime(DateUtils.getNowDate());
        return luntaiPolicyRequestResultMapper.insertLuntaiPolicyRequestResult(luntaiPolicyRequestResult);
    }

    /**
     * 修改保单申请延保审核结果记录

     * 
     * @param luntaiPolicyRequestResult 保单申请延保审核结果记录

     * @return 结果
     */
    @Override
    public int updateLuntaiPolicyRequestResult(LuntaiPolicyRequestResult luntaiPolicyRequestResult)
    {
        return luntaiPolicyRequestResultMapper.updateLuntaiPolicyRequestResult(luntaiPolicyRequestResult);
    }

    /**
     * 批量删除保单申请延保审核结果记录

     * 
     * @param ids 需要删除的保单申请延保审核结果记录
主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiPolicyRequestResultByIds(Integer[] ids)
    {
        return luntaiPolicyRequestResultMapper.deleteLuntaiPolicyRequestResultByIds(ids);
    }

    /**
     * 删除保单申请延保审核结果记录
信息
     * 
     * @param id 保单申请延保审核结果记录
主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiPolicyRequestResultById(Integer id)
    {
        return luntaiPolicyRequestResultMapper.deleteLuntaiPolicyRequestResultById(id);
    }
}
